package com.chuangjiangx.member.manager.web.web.score.request;

import com.chuangjiangx.commons.request.PageRequest;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class ScoreDetailListRequest extends PageRequest {

    /**
     * 会员id
     */
    private Long memberId;

    /**
     * 开始时间
     */
    private Date startTime;

    /**
     * 结算时间
     */
    private Date endTime;

    /**
     * 积分类型
     */
    private Byte type;

    public void setEndTime(Date endTime) {
        if (endTime != null) {
            endTime.setTime(endTime.getTime() + 23 * 60 * 60 * 1000 + 59 * 60 * 1000 + 59 * 1000);
        }
        this.endTime = endTime;
    }

}
